package com.koron.rating.rating.bean;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 评级情况汇总
 *
 * @Author: rocky
 * @Date: 2022/1/21 10:32
 */
@Data
public class RatringComparisonVo {

    @ApiModelProperty(value = "单位id")
    private String companyId;

    @ApiModelProperty(value = "单位")
    private String name;

    @ApiModelProperty(value = "是否主要设备")
    private Boolean iscore;

    @ApiModelProperty(value = "一类")
    private BigDecimal one = BigDecimal.ZERO;

    @ApiModelProperty(value = "二类")
    private BigDecimal two = BigDecimal.ZERO;

    @ApiModelProperty(value = "三类")
    private BigDecimal three = BigDecimal.ZERO;

    @ApiModelProperty(value = "四类")
    private BigDecimal four = BigDecimal.ZERO;

    @ApiModelProperty(value = "未评级数")
    private BigDecimal wait = BigDecimal.ZERO;

    @ApiModelProperty(value = "小计")
    private BigDecimal subtotal = BigDecimal.ZERO;

    @ApiModelProperty(value = "合计")
    private BigDecimal total = BigDecimal.ZERO;

    @ApiModelProperty(value = "设备完好率")
    private BigDecimal ratio = BigDecimal.ZERO;

    public RatringComparisonVo(String name) {
        this.name = name;
    }

    public RatringComparisonVo(String companyId, String name, Boolean iscore) {
        this.companyId = companyId;
        this.name = name;
        this.iscore = iscore;
    }

    public RatringComparisonVo() {
    }
}
